﻿@model IEnumerable<Sispe.Entities.VACACIONE>

@{
    ViewBag.Title = "VACACIONES";
}

<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>

<p>
    <a href="@Url.Action("Create", "Vacacaiones", new { id = Html.Value("IdContrato") })">
                <img src="@Url.Content("~/Images/add.png")" title="Registrar Sanción" alt="Registrar Sanción" /></a> 
</p>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>SANCIONES</legend>

        <div class="editor-field">@Html.Hidden("IdContrato")</div>

        <div class="editor-field"><b>Trabajador: </b></div>
        <input type="text" readonly="true" value="@Html.Value("TRABAJADOR")" />
    </fieldset>
    <pre></pre>
    
}
<pre></pre>


<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.IdVacaciones)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IdContrato)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.IdTipoGestion)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Observaciones)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.NroDias)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.IdVacaciones)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IdContrato)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.IdTipoGestion)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Observaciones)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.NroDias)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

    <p>
    <a href="@Url.Action("Index", "Contrato")">
                <img src ="@Url.Content("~/Images/back.png")" title="Volver a Contratos" 
                    alt="Volver a Contratos" /></a> 
    
</p>

</table>
